<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGameLovePayLogTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('game_love_order_log', function (Blueprint $table) {

            $table->increments('id')->comment('找情人支付日志表');
            $table->integer('user_id')->unsigned()->comment('用户id');
            $table->mediumInteger('from_XYB')->unsigned()->default(0)->comment('小妖币原始值');
            $table->mediumInteger('add_XYB')->default(0)->comment('小妖币增加值');
            $table->mediumInteger('to_XYB')->unsigned()->default(0)->comment('小妖币最终值');
            $table->integer('add_time')->unsigned()->default(0)->comment('创建时间');
            $table->integer('update_time')->unsigned()->default(0)->comment('更新时间');
            $table->integer("order_id")->unsigned()->comment('下单ID');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
